/*
 *  This file is part of WWWPal.
 *
 *  Copyright (C) 2003  Dr. John Punin, Department of Computer Science
 *  Rensselaer Polytechnic Institute
 *
 *  WWWPal is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  WWWPal is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Foobar; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef LOGR_SIMPLE_PAGES_H
#define LOGR_SIMPLE_PAGES_H

#include <sys/stat.h>
#include <sys/fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
#include <sys/time.h>
#include <assert.h>
#include <gr_graph_fun.h>

#include "LOGR_gen_pages.h"

typedef struct _web_simple_page_node {
    TypePage tp;
    void *nodeptr;
} WebSimplePageStruct;

typedef struct _web_simple_page_node *WebSimplePagePtr;

WebSimplePagePtr
new_web_simple_page_node(void);

void
delete_web_simple_page_node(WebSimplePagePtr gpn);

void
LOGR_set_type_simple_page(WebSimplePagePtr gpn,TypePage tp);

TypePage
LOGR_get_type_simple_page(WebSimplePagePtr gpn);

void
LOGR_set_info_simple_page(WebSimplePagePtr gpn,void *np);

void *
LOGR_get_info_simple_page(WebSimplePagePtr gpn);

long
LOGR_get_simple_naccesses(WebSimplePagePtr gpn);

int
LOGR_is_access_simple_lower(WebSimplePagePtr u, WebSimplePagePtr v);

int
LOGR_is_access_simple_bigger(WebSimplePagePtr u,WebSimplePagePtr v);

const char *
LOGR_get_simple_url(WebSimplePagePtr gnp);

int
LOGR_get_simple_num(WebSimplePagePtr gnp);

long
LOGR_get_simple_sizebytes(WebSimplePagePtr gnp);

const char *
LOGR_get_simple_title(WebSimplePagePtr gnp);

const char *
LOGR_get_simple_mime(WebSimplePagePtr gnp);

short
LOGR_is_simple_page_object(WebSimplePagePtr spn);

short
LOGR_is_simple_page_html(WebSimplePagePtr spn);

short
LOGR_is_simple_page_independent(WebSimplePagePtr spn);

#endif

